//
// Created by Administrator on 2021/5/24.
//
#include "iostream"
#include "string"
using namespace std;

struct Student{
    //成员列表
    //name
    string name;
    //age
    int age;
    //grage
    int grade;
}s3;

    //1.struct Student s1

    //2.struct Student s2
int main(){

    struct Student s1;
    s1.name = "zhangsan";
    s1.age = 20;
    s1.grade = 100;

    cout << "name: " << s1.name << " age: " << s1.age << " grade: " << s1.grade << endl;

    struct Student s2{"lisi", 18, 95};
    cout << "name: " << s2.name << " age: " << s2.age << " grade: " << s2.grade << endl;

    s3.name = "wangwu";
    s3.grade = 60;
    s3.age = 10;

    cout << "name: " << s3.name << " age: " << s3.age << " grade: " << s3.grade << endl;

    system("pause");

    return 0;
}